package com.coding.pojo;


import com.coding.base.util.TimeUtil;
import com.wordnik.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class User implements Serializable {
    @ApiModelProperty(value = "用户id")
    private int user_id;
    @ApiModelProperty(value = "用户名")
    private String user_name;
    @ApiModelProperty(value = "账号")
    private String user_iphone;
    @ApiModelProperty(value = "密码")
    private String user_pwd;
    @ApiModelProperty(value = "图片id")
    private int user_image;
    @ApiModelProperty(value = "图片url")
    private String user_image_url;
    @ApiModelProperty(value = "临时登录标识")
    private String login_flag;
    @ApiModelProperty(value = "上一次登录时间")
    private String last_login_time;
    private String register_time;
    @ApiModelProperty(value = "用户状态")
    private int user_status;
    @ApiModelProperty(value = "用户积分")
    private int user_points;
    @ApiModelProperty(value = "用户更多1")
    private String user_more1;
    @ApiModelProperty(value = "用户更多2")
    private String user_more2;

    public int getUser_point() {
        return user_points;
    }

    public void setUser_point(int user_points) {
        this.user_points = user_points;
    }

    public String getUser_more1() {
        return user_more1;
    }

    public void setUser_more1(String user_more1) {
        this.user_more1 = user_more1;
    }

    public String getUser_more2() {
        return user_more2;
    }

    public void setUser_more2(String user_more2) {
        this.user_more2 = user_more2;
    }

    public String getUser_image_url() {
        return user_image_url;
    }

    public void setUser_image_url(String user_image_url) {
        this.user_image_url = user_image_url;
    }

    public int getUser_image() {
        return user_image;
    }

    public void setUser_image(int user_image) {
        this.user_image = user_image;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getRegister_time() {
        return register_time;
    }

    public void setRegister_time(String register_time) {
        this.register_time = TimeUtil.timeSubstr(register_time);
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_iphone() {
        return user_iphone;
    }

    public void setUser_iphone(String user_iphone) {
        this.user_iphone = user_iphone;
    }

    public String getUser_pwd() {
        return user_pwd;
    }

    public void setUser_pwd(String user_pwd) {
        this.user_pwd = user_pwd;
    }

    public String getLogin_flag() {
        return login_flag;
    }

    public void setLogin_flag(String login_flag) {
        this.login_flag = login_flag;
    }

    public String getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(String last_login_time) {
        this.last_login_time = TimeUtil.timeSubstr(last_login_time);
    }

    public int getUser_status() {
        return user_status;
    }

    public void setUser_status(int user_status) {
        this.user_status = user_status;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", user_iphone='" + user_iphone + '\'' +
                ", user_pwd='" + user_pwd + '\'' +
                ", user_image=" + user_image +
                ", user_image_url='" + user_image_url + '\'' +
                ", login_flag='" + login_flag + '\'' +
                ", last_login_time='" + last_login_time + '\'' +
                ", register_time='" + register_time + '\'' +
                ", user_status=" + user_status +
                ", user_points=" + user_points +
                ", user_more1='" + user_more1 + '\'' +
                ", user_more2='" + user_more2 + '\'' +
                '}';
    }
}
